﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQ.Domain
{
    public class Estabelecimento : UsuarioSistema
    {
        public Estabelecimento()
            : base(TipoUsuario.Estabelecimento)
        {

        }

        public int EnderecoId
        {
            get;
            set;
        }
        public virtual Endereco Endereco
        {
            get;
            set;
        }

        public bool IsValid()
        {
            return (base.isValid() && this.Endereco.IsValid());
        }
    }
}
